#!/bin/bash
cd /home/deploy/it235
echo 'cd 235'

git pull
echo 'git pull code ...'

ID=`ps -ef|grep node | grep vuepress|awk '{print $2}'`

echo --- the process is $ID ---
kill -9  $ID
echo  "Killed $ID"

nohup npm run docs:dev&

echo 'success'
